﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using Meqs.Entity;

namespace Meqs.Logic.Interface
{
    public interface IQuestionItemsLogic : IMultiCommonLogic<QuestionItems, int>
    {
        /// <summary>
        /// 构造题目选项的字符串 转换为可读的字符串
        /// </summary>
        String GetOptStirng(String xml);

        /// <summary>
        /// 添加题目
        /// </summary>
        int AddReq(QuestionItems obj, String schoolMark);

        /// <summary>
        /// 删除指定题目并重新编号同组内其他题目
        /// </summary>
        int DeleteReqAndSort(int reqId, String schoolMark);


        /// <summary>
        /// 导入题目
        /// </summary>
        int ImportReqs(String list, int destReqClsId, String schoolMark);

        /// <summary>
        /// 移动题目
        /// </summary>
        int MoveReq(int reqId, int destReqClsId, String schoolMark);

        /// <summary>
        /// 批量移动
        /// </summary>
        int MoveReqs(String list, int destReqClsId, String schoolMark);

        /// <summary>
        /// 批量删除
        /// </summary>
        int DeleteReqs(String list, String schoolMark);

        /// <summary>
        /// 排序
        /// </summary>
        int SortReq(int reqClsId, Hashtable ht, String schoolMark);


        /// <summary>
        /// 插入题目类别
        /// </summary>
        int CreateQuestionItems(QuestionItems questionType, string schoolMark);

        /// <summary>
        /// 更新题目类别
        /// </summary>
        int UpdateQuestionItems(QuestionItems questionType, string schoolMark);

        /// <summary>
        /// 查询题目列表
        /// </summary>
        /// <param name="qtID"></param>
        /// <param name="schoolMark"></param>
        /// <returns></returns>
        IList<QuestionItems> FindQuestionItems(int qtID, string schoolMark);
    }
}
